package logs

import (
	"fmt"
	"github.com/astaxie/beego/logs"
)

func init() {
	//if beego.BConfig.RunMode == "dev" {
	//	return
	//}
	//logs.Async(1e3)
	err := logs.SetLogger(logs.AdapterMultiFile, fmt.Sprintf(`{"filename":"common.all.log","level":%d,"separate":["error","warning"]}`, logs.LevelInformational))
	if err != nil {
		panic(err)
	}
}
